inbuilt functions for dictionaries